// 命名空间
Ext.namespace(
	'DC',
	'DC.util',
	'DC.front',
	'DC.front.menu',
	'DC.front.win',
	'DC.action'
);

/*
 * 系统常量
 */ 
DC.front.variable = {
	SYS_CURRENTUSER : {
		'id' : '',
		'username' : 'zhang san',
		'realName' : '',
		'email' : '',
		'password' : '',
		'sex' : "男",
		'birthday' : new Date(),
		'point' : 0,
		'loginTimes' : 0,
		'lastSignTime' : new Date().format('Y-M-d h:m'),
		'notes' : ''
	}, 
	SYS_TABPANEL_NUM : 1,
	SYS_DATALIST_LEN : 20,
	SYS_TABPANEL_NUM : 1,
	FILTER_FILE_TYPE : /^[jpg|png|gif|jpeg|zip]$/
};
/*
 * 请求的路径
 */
DC.url = {
	GET_CURRENTUSERINFO : 'getCurrentUserInfo.action',
	CREATE_PROJECT : 'create-Project.action', //创建项目
	OPEN_PROJECT : 'open-Project.action',
	CLOSE_PROJECT : 'close-Project.action',
	GET_PROJECT_LIST : 'getProjectList.action', // 取得项目的名称
	GET_PROJECT_DETAIL_LIST : 'getProjectDetailList',
	GET_FOLDER_TREE : 'getFolderList.action', // 磁盘文件的结构树
	CREATE_FILE : 'create-File.action',
	CREATE_CLASS : 'create-Class.action',
	SAVE_FILE : 'save-File.action',
	DELETE_FILE : 'delete-File.action',
	OPEN_FILE : 'open-File.action',
	RENAME_FILE : 'renameFile.action',
	DOWNLOAD_ZIPFILE : 'batchDownload.action',
	DOWNLOAD_FILE : 'downloadFile.action',
	UPLOADFile : 'uploadFile.action',
	BUILD_PROJECT : 'build-Project.action',
	RUN_PROJECT : 'run-Project.action',
	MODIFYPASSWORD : 'modifyPassword.action',
	MODIFYUSERINFO : 'modifyUserInfo.action',
	CREATE_SITE : 'create-Site.action',
    CHECKOUT_PROJECT : 'checkoutProject.action'
};

/*
 * 全局对象
 */
DC.obj = {
	editor_tabPanel : null,
	explorer_treePanel : null,
	msg_tabPanel : null
};
